package test;

import java.util.ArrayList;

public class SumUtil {
    private SumUtil(){}
    public static int Sum(ArrayList<Student> list){
        int max = list.get(0).getAge();
        for(int i = 1 ; i< list.size() ; i++){
            int tempage = list.get(i).getAge();
            if(tempage >max){
                max= tempage;
                 }
            }
        return max;
        }

    }

